import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)

import PersonnelBaseInformation from "@/views/PersonnelManagement/PersonnelBaseInformation"

const routes = [
  // 基础信息维护
  {
    path: '/personnel_management/personnel_management',
    meta: { title: '基础信息维护', hasChildren: true },
    component: PersonnelBaseInformation
  },
  {
    path: '/personnel_management/personnel_management/base_information',
    meta: {
      hasChildren: true,
      childrenTitle: '人员基础信息',
      fatherPath: '/personnel_management/personnel_management'
    },
    component: PersonnelBaseInformation
  },

  // 表册输出
  {
    path: '/list_output/batch_printting',
    meta: { title: '表册输出' },
    component: () =>
      import('@/views/ListOutput/BatchPrinting')
  },
  {
    path: '/list_output/photo_roll',
    meta: { title: '表册输出' },
    component: () =>
      import('@/views/ListOutput/PhotoRoll')
  },

  // 上报接收
  {
    path: '/report_receive/data_reception',
    meta: { title: '上报接收' },
    component: () =>
      import('@/views/ReportReceive/DataReception')
  },

  // 花名册
  {
    path: '/roster/common_roster',
    meta: { title: '花名册' },
    component: () =>
      import('@/views/Roster/CommonRoster')
  },
  {
    path: '/roster/custom_roster',
    meta: { title: '花名册' },
    component: () =>
      import('@/views/Roster/CustomRoster')
  },

  // 核消汇总
  {
    path: '/report_management/report_ready',
    meta: { title: '核消汇总' },
    component: () =>
      import('@/views/ReportManagement/ReportReady/ReportReady')
  },

  // 查询对照
  {
    path: '/report_management/query_comparison',
    meta: { title: '查询对照' },
    component: () =>
      import('@/views/ReportManagement/QueryComparison/QueryComparison')
  }
]

const router = new VueRouter({
  routes,
})

export default router
